
{extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>
<body>
  <nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    系统管理
    <span class="c-gray en">&gt;</span>
    运营管理
    <span class="c-gray en">&gt;</span>
    活动列表
    <span class="c-gray en">&gt;</span>
    修改优惠活动
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
  </nav>
<article class="page-container">
 <form action="/admin/operate/yx_yhxg?id={$DLZL.id}" enctype="multipart/form-data" method="post" class="form form-horizontal">
  <div class="row cl">
      <label class="form-label col-xs-3 col-sm-1">活动标题</label>
      <div class="formControls col-xs-8 col-sm-9">
        <input type="text" name="title" value="{$DLZL.title}" class="input-text" />
      </div>
 	</div>
  
  <div class="row cl">
    <label class="form-label col-xs-3 col-sm-1">活动图片</label>
    <div class="formControls col-xs-8 col-sm-9">
        <input class="input-text upload-url" type="text" name="pic" id="test_charu_1" style="width:1135px" value="{$DLZL.pic}" readonly>
        <a href="javascript:void(0);" onclick="addpic(1)" class="btn btn-primary radius upload-btn">
          <i class="Hui-iconfont">&#xe642;</i>
          选择图片
        </a>
    </div>
  </div>
  
	<div class="row cl">
		<label class="form-label col-xs-3 col-sm-1">活动简介</label>
		<div class="formControls col-xs-8 col-sm-9"> 
			<input type="text" name="desc" value="{$DLZL.desc}" class="input-text" />
		</div>
	</div>

     <div class="row cl">
		<label class="form-label col-xs-3 col-sm-1">活动内容</label>
		<div class="formControls col-xs-8 col-sm-9"> 
			<script id="editor" type="text/plain" name="content" style="width:100%;height:400px;"></script> 
		</div>
	</div>

    <div class="row cl">
      <label class="form-label col-xs-3 col-sm-1">开始时间</label>
      <div class="formControls col-xs-8 col-sm-9">
      	<input type="text" name="begin_time"  value="{$DLZL.begin_time}" onfocus="WdatePicker()" id="begin_time" class="input-text Wdate" style="width:300px;">
        <!-- <input type="text" name="begin_time" value="{$DLZL.begin_time}" class="input-text" /> -->
      </div>
 	</div>
 	
 	<div class="row cl">
      <label class="form-label col-xs-3 col-sm-1">结束时间</label>
      <div class="formControls col-xs-8 col-sm-9">
      	<input type="text" name="end_time" value="{$DLZL.end_time}" onfocus="WdatePicker({minDate:$('#end_time').val()})" id="end_time" class="input-text Wdate" style="width:300px;">
        <!-- <input type="text" name="end_time" value="{$DLZL.end_time}" class="input-text" /> -->
      </div>
 	</div>
 	
  <div class="row cl">
  <input type="submit" name="submit" style="margin-left:170px;" class="btn btn-primary radius"  value="提交保存" />
   
  </div>
 </form>
 </article>
 <div style="display:none">
<form enctype="multipart/form-data" id="sky_upform_1" name="sky_upform_1" action="" method="post">
  <input type="file" name="upfile" id="upfile_1" onchange="submitpic(1)" />
  </form>

  </div>
{/block}

{block name="js"}
<script type="text/javascript" src="__SYSMET__/common.js"></script>
<script type="text/javascript" src="__SYSMET__/lib/ueditor/1.4.3/ueditor.config.js"></script> 
<script type="text/javascript" src="__SYSMET__/lib/ueditor/1.4.3/ueditor.all.min.js"> </script> 
<script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script>

<script type="text/javascript">
var ue = UE.getEditor('editor');
ue.ready(function() {
    //设置编辑器的内容
    ue.setContent('{$DLZL.content}');
});
</script>
{/block} 

